package com.soft.service;
import java.util.List;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import com.baomidou.mybatisplus.core.toolkit.Assert;
import com.soft.entity.Person;

@SpringBootTest
public class PersonServiceTest {

    @Autowired
    private PersonService personService;

    //@Test
    public void queryBySusheSnoTest() {
        List<Person> personList = personService.queryBySusheSno("vdsfv");
        Assert.isTrue(personList.size() == 1, "查询错误");
    }
    //@Test
    public void updatePersonTest() {
    	
    	int num=personService.updatePerson("6","张八","san楼");
    	Assert.isTrue(num==1,"修改错误");
    }
    @Test
    public void insertPersonTest() {
    	
    	int num=personService.insertPerson("1651","张十二","vdsfv");
    	Assert.isTrue(num==1,"增加错误");
    }
}